#!/bin/bash
set -e
set -x
MYDIR="${0%/*}"
cd "$MYDIR/.."
source "recipes/common.sh"


# RECIPE START git
# depends: cross-pkg-config
# depends: curl
# depends: expat
# depends: openssl1.1

reset_mtime git git/configure.ac
rm -rf build/git
cp -a git build/
cd build/git
cat > config.cache << EOF
ac_cv_fread_reads_directories=yes
ac_cv_iconv_omits_bom=no
ac_cv_snprintf_returns_bogus=no
EOF
../../git/configure \
	${CONFIGURE_ARGS} \
	--cache-file=config.cache \
	--with-curl \
	--with-expat \
	--with-openssl \
	${AUTOCRAP_KLUDGE}

cd ../..
make_build build/git

# RECIPE END git
